% 
%an example of calling the functions
%

close all; 
clear all;

cd /media/Data/workspace/java/othello/src/experiments/results2;
addpath('/media/Data/workspace/java/othello/src/experiments/matlab');

opponents = 2;  % 1=random, 2=positional, 3=mobility
exps = [2,4,6,8]; % 2 layer(NN,NN) vs 3 layer(pos,pos) vs 3 layer(NN,NN)
runs = [0:5];   % as much as possible
showInfo = true;
showAllData = false;
nBars = 15;

% figure 1: in presentation
opponents = 1;
showLearningCurves(exps, runs, opponents, showInfo, showAllData, nBars);     %plot all data-points instead of overview with error bars
title({'learningcurve','Network vs Random'},'FontSize',15);
legend({'1 hidden layer with fixed players','1 hidden layer with selfplay','2 hidden layers with fixed players','2 hidden layers with selfplay'});

% figure 2: in presentation
opponents = 2;
showLearningCurves(exps, runs, opponents, showInfo, showAllData, nBars);     %plot all data-points instead of overview with error bars
title({'learningcurve','Network vs Positional'},'FontSize',15);
legend({'1 hidden layer with fixed players','1 hidden layer with selfplay','2 hidden layers with fixed players','2 hidden layers with selfplay'},'Location','SouthEast');

% figure 3: not in presentation
%exps = [1:12];
%runs = 0:2;
%opponents = 1;
%showLearningCurves(exps, runs, opponents, showInfo, showAllData, nBars);     %plot all data-points instead of overview with error bars
%title({'learningcurve','Network vs Random'},'FontSize',15);

% figure 4: not in presentation
%opponents = 2;
%showLearningCurves(exps, runs, opponents, showInfo, showAllData, nBars);     %plot all data-points instead of overview with error bars
%title({'learningcurve','Network vs Positional'},'FontSize',15);

% figure 5: not in presentation
%exps = 12;
%runs = 0; % best run
%showMatrices(exps, runs, showInfo, showAllData);